package com.hhs.storage.controller;

import com.hhs.storage.bean.Car;
import com.hhs.storage.bean.StatsParam;
import com.hhs.storage.service.impl.BusinessStatsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author: HuangHaiShui
 * @description:商贸数据统计
 * @date: 2023/2/28 15:27
 * @version: 1.0
 */
@RestController
@RequestMapping("/businessStats")
public class BusinessStatsController {

    @Resource
    BusinessStatsService businessStatsService;
    //车次统计，业务员当日多少车
    @GetMapping(value = "carNum")
    public Map<String, Object> carNum(StatsParam statsParam){
        return businessStatsService.carNum(statsParam);
    }
    //车次统计明细
    @GetMapping(value = "carNumDetail")
    public Map<String, Object> carNumDetail(StatsParam statsParam){
        return businessStatsService.carNumDetail(statsParam);
    }
    //金额统计
    @GetMapping(value = "price")
    public Map<String, Object> priceStats(StatsParam statsParam){
        return businessStatsService.priceStats(statsParam);
    }

}
